package cn.rongdao.jrkabao.model.cashadvance;

import com.mifengkong.frtools.http.request.HttpFunction;

import cn.rongdao.jrkabao.bean.cashadvance.TransactionRecordBean;
import cn.rongdao.jrkabao.model.api.BaseKaMaoModel;
import io.reactivex.Observable;
import io.reactivex.Observer;

/**
 * Created by jack on 2017/6/2
 */

public class TransactionRecordModel extends BaseKaMaoModel {

    public static TransactionRecordModel getInstance() {
        return getPresent(TransactionRecordModel.class);
    }

    public void execute(Observer<TransactionRecordBean> observer) {
        Observable<TransactionRecordBean> observable = mServletApi.getTransRecord(mParams).map(new HttpFunction<TransactionRecordBean>());
        toSubscribe(observable, observer);
    }
}